#include "DataStructure/Result/ElementalForce/BEAMForceData.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure::Post;

bool SG::DataStructure::Post::operator== (const BEAMForceData& val1, const BEAMForceData& val2)
{
    FIELD_COMPARE (m_eId)
    FIELD_COMPARE_ARR (m_GRID, 11)
    FIELD_COMPARE_ARR (m_SD, 11)
    FIELD_COMPARE_ARR (m_BM1, 11)
    FIELD_COMPARE_ARR (m_BM2, 11)
    FIELD_COMPARE_ARR (m_TS1, 11)
    FIELD_COMPARE_ARR (m_TS2, 11)
    FIELD_COMPARE_ARR (m_AF, 11)
    FIELD_COMPARE_ARR (m_TTRQ, 11)
    FIELD_COMPARE_ARR (m_WTRQ, 11)
    FIELD_COMPARE (m_domainId)  // NOLINT(readability-simplify-boolean-expr)
    return true;
}

bool SG::DataStructure::Post::operator< (const BEAMForceData& a, const BEAMForceData& b)
{
    return a.m_eId < b.m_eId;
}
